<script setup lang="ts">
import { ref } from "vue";
const score = ref(0)
</script>
<template>
    <div>成绩等级
<span v-if="score>=90">A</span>
<span v-else-if="score>=80">B</span>
<span v-else-if="score>=70">C</span>
<span v-else>D</span>
    </div>
  

</template>


